from .data_statistics import SendingStatistics, GettingStatistics


def main(type_of_statistics) -> None:

    match type_of_statistics:
        case 'specified_products':
            GettingStatistics().create_statistics_for_specified_products()
            SendingStatistics().send_statistics_of_specified_products()
        case 'all_products':
            pass
        case _:
            message = f'Такой тип статистики не обрабатывается: {type_of_statistics}'
            raise ValueError(message)
